from django.conf.urls.defaults import *
from django.views.generic.list_detail import object_detail, object_list
from music.models import Song
from music import views

urlpatterns = patterns('',
    url(r'^song/(?P<song_id>\d+)/$', views.song_detail, name="music-detail"),
    url(r'^album/$', views.album_list, name="album-list"),
    #url(r'^album/(?P<album_id>\d+)/pdf/$', views.album_pdf, name="album-pdf"),
    url(r'^album/(?P<album_id>\d+)/$', views.album_detail, name="album-detail"),
    url(r'^playlist/$', views.playlist, name="playlist"),
    url(r'^player/$', views.player, name="player"),
    url(r'^song/(?P<song_id>\d+)/download/$', views.song_download, name="music-download"),
    url(r'^song/(?P<song_id>\d+)/remix/$', views.song_remix, name="song-remix"),
    url(r'^download/(?P<url>(.*))$', views.url_download, name="url-download"),
)
